import axios from "axios";

// 等级列表
let level_list = (params) => axios.get('/user/user_level/vip_list', { params });

// 创建等级表单
let create_list = (params) => axios.get('/user/user_level/create', { params });

// 会员等级添加或者修改
let level_set = (data) => axios.post('/user/user_level', data);

// 删除会员等级(假删)
let level_del = (id, data) => axios.put(`/user/user_level/delete/${id}`, data);

// 设置等级的显示和隐藏
let level_show_hidden = (id, is_show, data) => axios.put(`/user/user_level/set_show/${id}/${is_show}`, data);

// 等级列表快速编辑
let list_edit = (id, data) => axios.put(`/user/user_level/set_value/{}/${id}`, data);

export default {
    level_list,
    create_list,
    level_set,
    level_del,
    level_show_hidden,
    list_edit,
}